package com.mentalhealthplatform.studentV3.controller;

import com.mentalhealthplatform.studentV3.service.VideoServiceV3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Pear
 */
@RestController
public class VideoControllerV3 {

    @Autowired
    private VideoServiceV3 videoServiceV3;

    @GetMapping("/api/v3/videos")
    public List<String> getAllVideos() {
        return videoServiceV3.listAllVideos();
    }
}


